<%@  language="javascript" %>
<!--#include file="Cabecera2.asp" -->
<script type="text/javascript" src="Scripts/trunk8.js"></script>
 <script type="text/javascript">
   $(document).ready(function () {
     $('.trunk').trunk8({
       tooltip: false,
       lines: 2
     });
   });
  </script>   
<style type="text/css">
.tooltip-inner {
    max-width: 400px;
}
         .tr-hover
         {  
             background-color:#f9f9f9;
         }
</style>
<%
  var qGestion = Session("auth_granted_poa_gestion");
  var aperturaId = 0;
  var mes = 0;
  var rolUsuario = Session("auth_granted_poa_rol");
  var unidadOrganizacionalId = Session("auth_granted_poa_unidad");

  mes = Session("auth_granted_poa_mes");

  // si hay session tomo esa variable
  if (Session("aperturaId")) {
    aperturaId = Session("aperturaId");
    mes = Session("mes");
  }

  // recuperando de url
  if (request.QueryString("aperturaId").count() == 1) {
    aperturaId = request.QueryString("aperturaId");
  }
  if (request.QueryString("mes").count() == 1) {
    mes = request.QueryString("mes");
  }

  // recuperando de formulario
  if (request.form("submit").count() == 1) {
    mes = request.form("mes");
  }

 

  

  var qProductosDeApertura = " SELECT o" + qGestion + "_id id, o" + qGestion + "_codigo cod, o" + qGestion + "_objetivo descr FROM ObjetivosGestion" + qGestion + " order by o" + qGestion + "_codigo ";
  var ObjetivosGestion = GetDatar(qProductosDeApertura);

  // Almacenar en session
  
  Session("mes") = Number(mes);
%>

<table width="100%" border="0" cellspacing="1" cellpadding="2" align="center">
  <tbody>
    <tr>
    <td class="TituloSeccion">Reporte - Objetivos de Gestion 
       <br />
      A <%= getNombreMesJs(mes) + " del " + qGestion %></td>
  </tr>
  <tr>
    <td>
        <table style="width: 100%">
        <tr>
          <td>
    <form name="" id="" method="post" action="">
    
        <label>Seleccionar Mes:</label>
        <select name="mes">
          <option value="1" <%= (Number(mes) == 1) ? " selected='selected' " : "" %>>Enero</option>
          <option value="2" <%= (Number(mes) == 2) ? " selected='selected' " : "" %>>Febrero</option>
          <option value="3" <%= (Number(mes) == 3) ? " selected='selected' " : "" %>>Marzo</option>
          <option value="4" <%= (Number(mes) == 4) ? " selected='selected' " : "" %>>Abril</option>
          <option value="5" <%= (Number(mes) == 5) ? " selected='selected' " : "" %>>Mayo</option>
          <option value="6" <%= (Number(mes) == 6) ? " selected='selected' " : "" %>>Junio</option>
          <option value="7" <%= (Number(mes) == 7) ? " selected='selected' " : "" %>>Julio</option>
          <option value="8" <%= (Number(mes) == 8) ? " selected='selected' " : "" %>>Agosto</option>
          <option value="9" <%= (Number(mes) == 9) ? " selected='selected' " : "" %>>Septiembre</option>
          <option value="10" <%= (Number(mes) == 10) ? " selected='selected' " : "" %>>Octubre</option>
          <option value="11" <%= (Number(mes) == 11) ? " selected='selected' " : "" %>>Noviembre</option>
          <option value="12" <%= (Number(mes) == 12) ? " selected='selected' " : "" %>>Diciembre</option>
        </select>
        <br />
        <input type="submit" value="Mostrar" name="submit" />
        </form>
            <a href="SemaforizacionObjetivosGestionImprimir.asp?mes=<%= mes %>" target="_blank"> <img src="Iconos/printer_add.png" border="0" alt="Imprimir" title="Imprimir">&nbsp;Imprimir</a>
            </td>
          <td align="right" >
            <!--#include file="_leyenda.asp" -->
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
  	<td>
      <!--#include file="SemaforizacionObjetivosGestion_parcial.asp" -->
  	</td>
    </tr>
    </tbody>
  </table>

<!--#include file="Pie2.asp" -->